<?php
/**
 * IndexController
 * 
 * @author
 * @version 
 */
require_once 'Zend/Controller/Action.php';
class IndexController extends Thaind_Controller_Action
{
	var $_arrParam;
    public function init()
    {
//    	Truyền các tham số nhận được ra view

    	$this->_arrParam = $this->_request->getParams();
    	$this->view->arrParam = $this->_arrParam;
    }

    public function preDispatch(){
    	
//    	Chọn layout mặc định cho các action trong controller
    	
		$template_path = TEMPLATE_PATH . "/default/default";
		$this->loadTemplate($template_path,'template.ini','template');
    }
    
    /**
     * The default action - show the home page
     */
    public function indexAction ()
    {
    	$this->_forward("index","product","wap");
    }
}
